/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.pbp.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 *
 * @author Kim
 */
@Entity
@Table(name = "genre")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Genre implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @Id
    @Column(name = "kode_genre")
    private String kodeGenre;
    
    @Column(name = "nama_genre")
    private String namaGenre;

    public void setKodeGenre(String kodeGenre) {
        this.kodeGenre = kodeGenre;
    }

    public void setNamaGenre(String namaGenre) {
        this.namaGenre = namaGenre;
    }

    public String getKodeGenre() {
        return kodeGenre;
    }

    public String getNamaGenre() {
        return namaGenre;
    }
    
    
}

